package com.qzxy.premiumhotelsystem.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.BindException;

@Configuration
public class Knife4jConfig  {
    /**
     * knife4j生成文档
     * @return
     */
    @Bean
    public OpenAPI customOpenAPI(){
        return new OpenAPI()
                    .info(new Info()
                            .title("臻品酒店管理系统")
                            .version("1.0")
                            .description("臻品酒店管理系统接口文档"));
    }
}
